#define _CRT_SECURE_NO_WARNINGS 2

#include<iostream>
#include<set>
#include<map>

void test_set1() {
	std::set<int> s;
	s.insert(1);
	s.insert(2);
	s.insert(4);
	for (int e : s) {
		std::cout << e << std::endl;
	}
}

void test_map() {
	std::string s[] = { "11","22","33","44","22","33" };
	std::map<std::string, int> m;
	
	for (auto e : s) {
		m[e]++;
	}
	for (std::pair<std::string, int> p : m) {
		std::cout << p.first << ":" << p.second << std::endl;
	}
}

int main() {
	test_set1();
	test_map();
	return 0;
}